import request from "@/utils/http/request";
//品牌的接口
export const reqTradeMarkList = (page: any, limit: any) =>
  request.get<any, any>(`/admin/product/baseTrademark/${page}/${limit}`);
//添加品牌的接口
export const reqAddTradeMark = (data: any) => {
  if (data.id) {
    request.put(`/admin/product/baseTrademark/update`, data);
  } else {
    request.post(`/admin/product/baseTrademark/save`, data);
  }
};

//删除品牌
export const reqDelTradeMark =(id:any)=>request.delete(`/admin/product/baseTrademark/remove/${id}`)
